package com.mud.dnd.frontend.rs.common;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

public class DnDJSONResponse implements Serializable {
	
	
	
	public enum ResponseSatus
	{
		OK,
		ERROR

	}
	
	
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 647478356L;
	private ResponseSatus status;
	private String errorMessage;
	private Map<String,String> parameters;
	
	
	
	
	public DnDJSONResponse(ResponseSatus status) {
		super();
		this.status = status;
		parameters = new HashMap<String, String>();	
	}
	
	
	public DnDJSONResponse(ResponseSatus status, String errorMessage) {
		super();
		this.status = status;
		this.errorMessage = errorMessage;
		parameters = new HashMap<String, String>();
	}

	public ResponseSatus getStatus() {
		return status;
	}
	public void setStatus(ResponseSatus status) {
		this.status = status;
	}
	public String getErrorMessage() {
		return errorMessage;
	}
	public void setErrorMessage(String errorMessage) {
		this.errorMessage = errorMessage;
	}
	public Map<String, String> getParameters() {
		return parameters;
	}
	public void setParameters(Map<String, String> parameters) {
		this.parameters = parameters;
	}
	
	

}
